Remove unnecessary extraction of ssidref from config inside restore -- this
authoremellor@ewan <emellor@ewan>
Sun, 9 Oct 2005 11:16:23 +0000 (12:16 +0100)
committeremellor@ewan <emellor@ewan>
Sun, 9 Oct 2005 11:16:23 +0000 (12:16 +0100)
is now handled by the construct call, which restore has recently started using.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xend/XendDomainInfo.py

index e8ed2c29957bde2abb42481553c922c0d0324743..3b73e572c95291e7bc9f4fb601f0ab8df3e089d1 100644 (file)
@@ -219,17 +219,12 @@ def recreate(xeninfo):
 def restore(config):
     """Create a domain and a VM object to do a restore.
 
-    @param config:    domain configuration
+    @param config: domain configuration
     """
 
     log.debug("XendDomainInfo.restore(%s)", config)
 
-    try:
-        uuid    =     sxp.child_value(config, 'uuid')
-        ssidref = int(sxp.child_value(config, 'ssidref'))
-    except TypeError, exn:
-        raise VmError('Invalid ssidref in config: %s' % exn)
-
+    uuid = sxp.child_value(config, 'uuid')
     vm = XendDomainInfo(uuid, parseConfig(config))
     try:
         vm.construct()